﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;

namespace NC.Cather
{
    public class UrlList:BaseEntity
    {
        public UrlList()
        {
            //默认A标签的筛选方式
            ASelector = "li a";
        }
        /// <summary>
        /// 每个模块的【更多】地址一般都不是一样的
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// Url模块名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 列表容器样式选择器
        /// </summary>
        public string ContentSelector { get; set; }
        //a标签的选择器
        /// <summary>
        /// A标签的筛选方式，默认是 li a
        /// </summary>
        public string ASelector { get; set; }
        /// <summary>
        /// 是否开启遍历分页数据
        /// </summary>
        public bool EnablePager { get; set; }
        /// <summary>
        /// 分页数据选择器，形式为：page{number}
        /// </summary>
        public string PagerSelector { get; set; }
        /// <summary>
        /// PostBody参数
        /// </summary>
        public string PostBodyParams { get; set; }
        /// <summary>
        /// 路由地址参数
        /// </summary>
        public string QueryStringParams { get; set; }
        /// <summary>
        /// 网页获取方式
        /// 默认为：get，也可设置为post
        /// </summary>
        public string Method { get; set; }
        /// <summary>
        /// 每次请求数据多少个分页数据
        /// </summary>
        public string PerRequestPagerNum { get; set; }
        public virtual Target Target { get; set; }
    }
}
